package com.relax.guolv;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector  implements ImportSelector {
    /**
     * 返回值就是要导入spring中的组件的全路径名
     * @param importingClassMetadata
     * @return
     */
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
//        importingClassMetadat
        return new String[]{"com.relax.bean.Blue","com.relax.bean.ImportSelectorBean"};
//        return new String[0];

    }
}
